package com.javen.study.enums;

import lombok.Getter;

/**
 * @Author: tujw@netinnet.cn
 * @Date: 2022/11/18 16:27
 * @Description: com.javen.study.javenstudy.enums
 */
public final class CommonEnums {

    /**
     * 接口响应枚举类
     */
    @Getter
    public enum ResultEnum {
        SUCCESS(1000, "交易成功"),
        PARAM_VALID_ERROR(5000, "参数校验失败"),
        DEFAULT_ERROR(9999, "交易失败");

        private Integer code;

        private String msg;

        ResultEnum(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }

    }

}
